/*
 * 攀枝花学院二手图书拍卖平台
 * Design by 王伟学
 * Version :1.0
 */
package com.auction.system.domain.dto.user;

import java.io.Serializable;

import com.auction.system.domain.pojo.user.UserInfoPojo;
import com.auction.system.enums.EnumUserSex;
import com.auction.system.utils.StringUtil;
import lombok.Data;
/**
 * user_info - 用户基本信息表 实体类
 * 
 * @author 软件工程3班-王伟学
 */
@Data
public class UserInfo extends UserInfoPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public UserInfo(){

    }

    public UserInfo(Long id){
        this.setId(id);
    }

    public String getUserSexDesc(){
        if(StringUtil.isEmpty(getUserSex())){
            return "";
        }
        return EnumUserSex.getName(getUserSex());
    }
}
